home *** CD-ROM | disk | FTP | other *** search
- Path: rover.ucs.ualberta.ca!mcbride
- From: mcbride@ee.ualberta.ca (Darin McBride)
- Newsgroups: comp.lang.c
- Subject: Re: Watcom: pad a string ?
- Date: 6 Feb 1996 18:38:23 GMT
- Organization: University of Alberta Electrical Engineering Department
- Message-ID: <4f876v$2002@pulp.ucs.ualberta.ca>
- References: <ZCOExQTC3kJT089yn@pinerolo.gvo.it>
- NNTP-Posting-Host: hp05.ee.ualberta.ca
- X-Newsreader: TIN [version 1.2 PL2]
-
- Alberto Velo (albe@pinerolo.gvo.it) wrote:
- > struct, I find additional garbage chars in the file, who fill the array sizes.
- > For example, I fill msg.from with "Myname"; from is defined as 3 chars array,
- > in the struct: when I write the entire struct to the file, the from field
- > appears to be "Myname @ # *รจ 3 ..." , that is "Myname" + extra garbage for a
- > total of 36 chars.
-
- Since the Fido pkt's are binary, just leave it...
-
- What will really appear is:
-
- 'M', 'y', 'n', 'a', 'm', 'e', '\0', ...
-
- At this point you don't care what's in the rest of the characters.
-
- --
- Darin McBride:mcbride@ee.ualberta.ca/mcbride@tower.bohica.net
-
- Enjoy each day as if it were your last, care about each moment as if
- it were your last for one day, one moment, you *will* be right!
-
- Tips & Tricks for IBM Hardware, MSDOS, OS2, Windows (including Win'95):
- http://www.ee.ualberta.ca/~mcbride/tiptrick.html
-